home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 7 / CD FunHouse 7 For The Macintosh (Wayzata)(1992).iso / • The Arcade • / Tilt v1.1••• / Tilt v1.1еее / background_3235.xml < prev    next >
Encoding:
Extensible Markup Language  |  1991-12-24  |  19.8 KB  |  173 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3235</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_9132.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3767.css" />
  11.     <part>
  12.         <id>2</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>275</left>
  23.             <top>130</top>
  24.             <right>501</right>
  25.             <bottom>239</bottom>
  26.         </rect>
  27.         <style>rectangle</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Venice</font>
  37.         <textSize>14</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>18</textHeight>
  40.         <name>ResultBox</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>3</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>4</left>
  55.             <top>265</top>
  56.             <right>235</right>
  57.             <bottom>338</bottom>
  58.         </rect>
  59.         <style>rectangle</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Venice</font>
  69.         <textSize>14</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>18</textHeight>
  72.         <name>OwnHonorsBox</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>4</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <true /> </lockText>
  85.         <rect>
  86.             <left>247</left>
  87.             <top>265</top>
  88.             <right>499</right>
  89.             <bottom>338</bottom>
  90.         </rect>
  91.         <style>rectangle</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Venice</font>
  101.         <textSize>14</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>18</textHeight>
  104.         <name>OppHonorsBox</name>
  105.         <script></script>
  106.     </part>
  107.     <part>
  108.         <id>6</id>
  109.         <type>field</type>
  110.         <visible> <true /> </visible>
  111.         <dontWrap> <false /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <true /> </lockText>
  117.         <rect>
  118.             <left>275</left>
  119.             <top>130</top>
  120.             <right>502</right>
  121.             <bottom>151</bottom>
  122.         </rect>
  123.         <style>transparent</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>left</textAlign>
  132.         <font>Venice</font>
  133.         <textSize>14</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>18</textHeight>
  136.         <name></name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>8</id>
  141.         <type>button</type>
  142.         <visible> <true /> </visible>
  143.         <reserved5> 0 </reserved5>
  144.         <reserved4> 0 </reserved4>
  145.         <reserved3> 0 </reserved3>
  146.         <reserved2> 0 </reserved2>
  147.         <reserved1> 0 </reserved1>
  148.         <enabled> <true /> </enabled>
  149.         <rect>
  150.             <left>271</left>
  151.             <top>23</top>
  152.             <right>374</right>
  153.             <bottom>49</bottom>
  154.         </rect>
  155.         <style>transparent</style>
  156.         <showName> <false /> </showName>
  157.         <highlight> <false /> </highlight>
  158.         <autoHighlight> <false /> </autoHighlight>
  159.         <sharedHighlight> <true /> </sharedHighlight>
  160.         <family>0</family>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>center</textAlign>
  164.         <font>Chicago</font>
  165.         <textSize>12</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <name>New Button</name>
  168.         <script>on mouseUp
  169. global turn
  170. if turn > 0 then
  171. set the lockScreen to true
  172. put "                         " into line 2 of field 1
  173. put "                         " into line 3 of field 1
  174. put "                         " into line 4 of field 1
  175. put "                         " into line 5 of field 1
  176. put "                         " into line 6 of field 1
  177. put "Crests Claimed: " into line 1 of field 2
  178. put "Crests Claimed: " into line 1 of field 3
  179. put "Opponents Unhorsed: " into line 2 of field 2
  180. put "Opponents Unhorsed: " into line 2 of field 3
  181. put "Lances Broken: " into line 3 of field 2
  182. put "Lances Broken: " into line 3 of field 3
  183. put "Lances Total: " into line 4 of field 3
  184. put "Lances Total: " into line 4 of field 2
  185. end if
  186.  
  187. play "boing"
  188.  
  189. global oppThudScore
  190. global turn
  191. global oppCrestScore
  192. global yourCrestScore
  193. global oppGoneFlag
  194. global youGoneFlag
  195. global youGoThud
  196. global oppGoesThud
  197. global oppLanceWin
  198. global youLanceWin
  199. global winLose
  200. If winLose = 1 then go Card 10
  201. If winLose = 0 then go to card 2
  202. end mouseUp
  203. </script>
  204.     </part>
  205.     <name></name>
  206.     <script>On openBackground
  207. end openBackground
  208.  
  209. On giveResults
  210. global oppAim
  211. global oppLanceFlag
  212. global yourLanceFlag
  213. global yourLances
  214. global oppLances
  215. global oppMissFlag
  216. global yourMissFlag
  217. global youThud
  218. global compThud
  219. global attacker
  220. global oppHitBarrier
  221. global youHitBarrier
  222. global oppHitHorse
  223. global youHitHorse
  224. global aFlag
  225. global hitYourCrest
  226. global hitOppCrest
  227. global yourThudScore
  228. global oppThudScore
  229. global oppCrestScore
  230. global yourCrestScore
  231. global oppGoneFlag
  232. global youGoneFlag
  233. global x
  234. global oppGoesThud
  235. global youGoThud
  236. global oldOppLances
  237. global oldYourLances
  238. global oppLanceWin
  239. global youLanceWin
  240. global winLose
  241. global check
  242. global oppcheck
  243. global youBrokeScore
  244. global oppBrokeScore
  245. -- Where opponent is aiming
  246. If oppAim =1 then put "Crest of Helm" into line two of field 1
  247. If oppAim =2 then put "Helm" into line two of field 1
  248. If oppAim =3 then put "Throat Gorget" into line two of field 1
  249. If oppAim =4 then put "Dexter Chief" into line two of field 1
  250. If oppAim =5 then put "Chief Pale" into line two of field 1
  251. If oppAim =6 then put "Sinister Chief" into line two of field 1
  252. If oppAim =7 then put "Dexter Fess" into line two of field 1
  253. If oppAim =8 then put "Fess Pale" into line two of field 1
  254. If oppAim =9 then put "Sinister Fess" into line two of field 1
  255. If oppAim =10 then put "Shield Base" into line two of field 1
  256. -- Opponent breaks lance
  257. if oppLanceFlag=1 then
  258. put "He Broke Lance!" into line three of field 1
  259. put 0 into oppLanceFlag
  260. end if
  261. -- You break lance
  262. if yourLanceFlag=1 then
  263. put "You Broke Lance!" into line five of field 1
  264. put 0 into yourLanceFlag
  265. end if
  266. -- Opponent Misses
  267. If oppMissFlag=1 then
  268. put "He Missed!" into line three of field 1
  269. put 0 into oppMissFlag
  270. end if
  271. -- You Miss
  272. If yourMissFlag=1 then
  273. put "You Missed!" into line five of field 1
  274. put 0 into yourMissflag
  275. end if
  276. -- Unhorsing
  277. If youThud = 1 then
  278. put "He Unhorsed You!" into line 4 of field 1
  279. put 0 into youThud
  280. add 1 to oppThudScore
  281. put "Opponents Unhorsed: "&oppThudScore into line 2 of field 2
  282. put 1 into youGoThud
  283. put 1 into winLose
  284. end if
  285. If compThud = 1 then
  286. put "You Unhorsed Him!" into line 6 of field 1
  287. put 0 into compThud
  288. add 1 to yourThudScore
  289. put "Opponents Unhorsed: "&yourThudScore into line 2 of field 3
  290. put 1 into oppGoesThud
  291. put 1 into winLose
  292. end if
  293. -- Foul
  294. If oppHitBarrier = 1 then
  295. put "FOUL! Opponent Hits Wall" into line 4 of field 1
  296. put 0 into oppHitBarrier
  297. put oppLances - 1 into oppLances
  298. end if
  299. If oppHitHorse = 1 then
  300. put "FOUL! Opponent Hits Horse!" into line 4 of field 1
  301. put 0 into oppHitHorse
  302. put 1 into oppGoneFlag
  303. put 1 into winLose
  304. end if
  305. If youHitBarrier = 1 then
  306. put "FOUL! You Hit Wall" into line 6 of field 1
  307. put 0 into youHitBarrier
  308. put yourLances - 1 into yourLances
  309. end if
  310. If youHitHorse = 1 then
  311. put "FOUL! You Hit Horse!" into line 6 of field 1
  312. put 0 into youHitHorse
  313. put 1 into youGoneFlag
  314. put 1 into winLose
  315. end if
  316. -- Crests
  317. If hitYourCrest = 1 then
  318. put "HE TORE YOUR CREST!!!" into line 4 of field 1
  319. add 1 to oppCrestScore
  320. put 0 into hitYourCrest
  321. end if
  322. If hitOppCrest = 1 then
  323. put "YOU TORE HIS CREST!!" into line 6 of field 1
  324. add 1 to yourCrestScore
  325. put 0 into hitOppCrest
  326. end if
  327. set the lockScreen to true
  328. put "Crests Claimed: "&oppCrestScore into line 1 of field 2
  329. put "Crests Claimed: "&yourCrestScore into line 1 of field 3
  330. put "Opponents Unhorsed: "&yourThudScore into line 2 of field 3
  331. put "Opponents Unhorsed: "&oppThudScore into line 2 of field 2
  332. put "Lances Broken: "&oppBrokeScore into line 3 of field 2
  333. put "Lances Broken: "&youBrokeScore into line 3 of field 3
  334. put "Lances Total: "&yourLances into line 4 of field 3
  335. put "Lances Total: "&oppLances into line 4 of field 2
  336. if oppBrokeScore = 3 then put 1 into oppLanceWin
  337. if youBrokeScore = 3 then put 1 into youLanceWin
  338.  
  339. End giveResults
  340.  
  341.  
  342.  
  343. On lanceHit
  344. global aFlag
  345. global eFlag
  346. global attacker
  347. global oppLances
  348. global YourLances
  349. global oppLanceFlag
  350. global yourLanceFlag
  351. global oppLanceWin
  352. global youLanceWin
  353. global check
  354. global oppCheck
  355. global youBrokeScore
  356. global oppBrokeScore
  357. global winlose
  358. If eFlag =1 then maybeFall
  359. If attacker = 1 then
  360. put 1 into oppLanceFlag
  361. add 1 to oppLances
  362. add 1 to oppcheck
  363. add 1 to oppBrokeScore
  364. if oppcheck = 3 then
  365. put 1 into winLose
  366. put 0 into oppcheck
  367. put 0 into check
  368. end if
  369. end if
  370. if attacker = 2 then
  371. put 1 into yourLanceFlag
  372. add 1 to yourLances
  373. add 1 to check
  374. add 1 to youBrokeScore
  375. if check = 3 then
  376. put 1 into winLose
  377. put 0 into check
  378. put 0 into oppcheck
  379. end if
  380. end if
  381.  
  382. put 0 into eFlag
  383. If aFlag = 1 then maybeCrest
  384. End lanceHit
  385.  
  386. On miss
  387. global dFlag
  388. global attacker
  389. global oppMissFlag
  390. global yourMissFlag
  391. if attacker = 1 then put 1 into oppMissFlag
  392. if attacker = 2 then put 1 into yourMissFlag
  393. if dFlag = 1 then maybefoul
  394. end Miss
  395.  
  396. On dice
  397. global roll
  398. Put the random of 20 into roll
  399. End dice
  400.  
  401. on maybeFall
  402. dice
  403. global eFlag
  404. global roll
  405. global compThud
  406. global youThud
  407. global attacker
  408. global yourLanceFlag
  409. global oppLanceFlag
  410. If (eFlag = 1) and (attacker = 1) then
  411. if roll <=6 then put 1 into youThud
  412. end if
  413. If (eFlag = 1) and (attacker = 2) then
  414. if roll <=6 then put 1 into compThud
  415. end if
  416. put 0 into eFlag
  417. end maybeFall
  418.  
  419. on maybeFoul
  420. global dFlag
  421. global roll
  422. global attacker
  423. global oppHitBarrier
  424. global youHitBarrier
  425. global oppHitHorse
  426. global youHitHorse
  427. put 0 into dFlag
  428. dice
  429. If attacker = 1 and roll <=5 then
  430. put 1 into oppHitBarrier
  431. end if
  432. if attacker = 1 and roll >5 and roll <9 then
  433. put 1 into oppHitHorse
  434. end if
  435. If attacker = 2 and roll <=5 then
  436. put 1 into youHitBarrier
  437. end if
  438. if attacker = 2 and roll >6 and roll <9 then
  439. put 1 into youHitHorse
  440. end if
  441. end maybeFoul
  442.  
  443. On maybeCrest
  444. global aFlag
  445. global hitYourCrest
  446. global hitOppCrest
  447. global attacker
  448. global roll
  449. put 0 into aFlag
  450. dice
  451. If attacker = 1 and roll <6 then put 1 into hitYourCrest
  452. If attacker = 2 and roll <6 then put 1 into hitOppCrest
  453. end maybeCrest
  454.  
  455. --******************************************
  456. On lrCRT
  457. global attacker
  458. global CRTdefense
  459. global CRToffense
  460. global defense
  461. global oppDefense
  462. global aimPoint
  463. global eFlag
  464. global dFlag
  465. global roll
  466. global tempCompScore
  467. global tempYouScore
  468. global tempCompMiss
  469. global tempYouMiss
  470. global oppAim
  471. put 0 into dFlag
  472. put 0 into eFlag
  473. If attacker = 1 then
  474. put defense-20 into CRTdefense
  475. put oppAim into CRToffense
  476. end if
  477. If attacker = 2 then
  478. put oppDefense into CRTdefense
  479. put aimPoint-1 into CRToffense
  480. end if
  481. If CRToffense = 1 then
  482. dice
  483. if roll >= 19 then lanceHit else miss
  484. end if
  485. If CRToffense = 2 then
  486. dice
  487. put 1 into dFlag
  488. if roll >= 18 then lanceHit else miss
  489. put 0 into dFlag
  490. end if
  491. If CRToffense = 3 then
  492. dice
  493. put 1 into dFlag
  494. if roll >= 17 then lanceHit else miss
  495. put 0 into dFlag
  496. end if
  497. If CRToffense = 4 then
  498. dice
  499. if roll >= 6 then lanceHit else miss
  500. end if
  501. If CRToffense = 5 then
  502. dice
  503. if roll >= 11 then lanceHit else miss
  504. end if
  505. If CRToffense = 6 then
  506. dice
  507. put 1 into dFlag
  508. if roll >= 19 then lanceHit else miss
  509. put 0 into dFlag
  510. end if
  511. If CRToffense = 7 then
  512. dice
  513. put 1 into eFlag
  514. if roll >= 9 then lanceHit else miss
  515. put 0 into eFlag
  516. end if
  517. If CRToffense = 8 then
  518. dice
  519. if roll >= 11 then lanceHit else miss
  520. end if
  521. If CRToffense = 9 then
  522. dice
  523. put 1 into dFlag
  524. if roll >= 17 then lanceHit else miss
  525. put 0 into dFlag
  526. end if
  527. If CRToffense = 10 then
  528. dice
  529. put 1 into dFlag
  530. if roll >= 13 then lanceHit else miss
  531. put 0 into dFlag
  532. end if
  533. End lrCRT
  534. --**********************************************
  535.  
  536. --**********************************************
  537. On llCRT
  538. global attacker
  539. global CRTdefense
  540. global CRToffense
  541. global defense
  542. global oppDefense
  543. global aimPoint
  544. global eFlag
  545. global dFlag
  546. global roll
  547. global tempCompScore
  548. global tempYouScore
  549. global tempCompMiss
  550. global tempYouMiss
  551. global oppAim
  552. put 0 into dFlag
  553. put 0 into eFlag
  554. If attacker = 1 then
  555. put defense-20 into CRTdefense
  556. put oppAim into CRToffense
  557. end if
  558. If attacker = 2 then
  559. put oppDefense into CRTdefense
  560. put aimPoint-1 into CRToffense
  561. end if
  562. If CRToffense = 1 then
  563. dice
  564. if roll >= 15 then lanceHit else miss
  565. end if
  566. If CRToffense = 2 then
  567. dice
  568. put 1 into eFlag
  569. if roll >= 13 then lanceHit else miss
  570. put 0 into eFlag
  571. end if
  572. If CRToffense = 3 then
  573. dice
  574. if roll >= 13 then lanceHit else miss
  575. end if
  576. If CRToffense = 4 then
  577. dice
  578. put 1 into dFlag
  579. if roll >= 17 then lanceHit else miss
  580. put 0 into dFlag
  581. end if
  582. If CRToffense = 5 then
  583. dice
  584. if roll >= 9 then lanceHit else miss
  585. end if
  586. If CRToffense = 6 then
  587. dice
  588. if roll >= 7 then lanceHit else miss
  589. end if
  590. If CRToffense = 7 then
  591. dice
  592. put 1 into dFlag
  593. if roll >= 15 then lanceHit else miss
  594. put 0 into dFlag
  595. end if
  596. If CRToffense = 8 then
  597. dice
  598. if roll >= 6 then lanceHit else miss
  599. end if
  600. If CRToffense = 9 then
  601. dice
  602. put 1 into eFlag
  603. if roll >= 8 then lanceHit else miss
  604. put 0 into eFlag
  605. end if
  606. If CRToffense = 10 then
  607. dice
  608. put 1 into eFlag
  609. if roll >= 4 then lanceHit else miss
  610. put 0 into eFlag
  611. end if
  612. End llCRT
  613. --**********************************************
  614.  
  615. --**********************************************
  616. On ssCRT
  617. global attacker
  618. global CRTdefense
  619. global CRToffense
  620. global defense
  621. global oppDefense
  622. global aimPoint
  623. global aFlag
  624. global eFlag
  625. global dFlag
  626. global roll
  627. global tempCompScore
  628. global tempYouScore
  629. global tempCompMiss
  630. global tempYouMiss
  631. global oppAim
  632. put 0 into aFlag
  633. put 0 into dFlag
  634. put 0 into eFlag
  635. If attacker = 1 then
  636. put defense-20 into CRTdefense
  637. put oppAim into CRToffense
  638. end if
  639. If attacker = 2 then
  640. put oppDefense into CRTdefense
  641. put aimPoint-1 into CRToffense
  642. end if
  643. If CRToffense = 1 then
  644. dice
  645. put 1 into aFlag
  646. if roll >= 13 then lanceHit else miss
  647. put 0 into aFlag
  648. end if
  649. If CRToffense = 2 then
  650. dice
  651. put 1 into eFlag
  652. if roll >= 11 then lanceHit else miss
  653. put 0 into eFlag
  654. end if
  655. If CRToffense = 3 then
  656. dice
  657. if roll >= 11 then lanceHit else miss
  658. end if
  659. If CRToffense = 4 then
  660. dice
  661. if roll >= 6 then lanceHit else miss
  662. end if
  663. If CRToffense = 5 then
  664. dice
  665. put 1 into eFlag
  666. if roll >= 6 then lanceHit else miss
  667. put 0 into eFlag
  668. end if
  669. If CRToffense = 6 then
  670. dice
  671. if roll >= 9 then lanceHit else miss
  672. end if
  673. If CRToffense = 7 then
  674. dice
  675. if roll >= 5 then lanceHit else miss
  676. end if
  677. If CRToffense = 8 then
  678. dice
  679. put 1 into eFlag
  680. if roll >= 3 then lanceHit else miss
  681. put 0 into eFlag
  682. end if
  683. If CRToffense = 9 then
  684. dice
  685. put 1 into eFlag
  686. if roll >= 11 then lanceHit else miss
  687. put 0 into eFlag
  688. end if
  689. If CRToffense = 10 then
  690. dice
  691. if roll >= 6 then lanceHit else miss
  692. end if
  693. End ssCRT
  694. --**********************************************
  695.  
  696. --**********************************************
  697. On shCRT
  698. global attacker
  699. global CRTdefense
  700. global CRToffense
  701. global defense
  702. global oppDefense
  703. global aimPoint
  704. global eFlag
  705. global dFlag
  706. global roll
  707. global tempCompScore
  708. global tempYouScore
  709. global tempCompMiss
  710. global tempYouMiss
  711. global oppAim
  712. put 0 into dFlag
  713. put 0 into eFlag
  714. If attacker = 1 then
  715. put defense-20 into CRTdefense
  716. put oppAim into CRToffense
  717. end if
  718. If attacker = 2 then
  719. put oppDefense into CRTdefense
  720. put aimPoint-1 into CRToffense
  721. end if
  722. If CRToffense = 1 then
  723. dice
  724. if roll >= 17 then lanceHit else miss
  725. end if
  726. If CRToffense = 2 then
  727. dice
  728. if roll >= 15 then lanceHit else miss
  729. end if
  730. If CRToffense = 3 then
  731. dice
  732. if roll >= 17 then lanceHit else miss
  733. end if
  734. If CRToffense = 4 then
  735. dice
  736. if roll >= 6 then lanceHit else miss
  737. end if
  738. If CRToffense = 5 then
  739. dice
  740. if roll >= 9 then lanceHit else miss
  741. end if
  742. If CRToffense = 6 then
  743. dice
  744. if roll >= 13 then lanceHit else miss
  745. end if
  746. If CRToffense = 7 then
  747. dice
  748. if roll >= 9 then lanceHit else miss
  749. end if
  750. If CRToffense = 8 then
  751. dice
  752. if roll >= 6 then lanceHit else miss
  753. end if
  754. If CRToffense = 9 then
  755. dice
  756. if roll >= 11 then lanceHit else miss
  757. end if
  758. If CRToffense = 10 then
  759. dice
  760. put 1 into eFlag
  761. if roll >= 3 then lanceHit else miss
  762. put 0 into eFlag
  763. end if
  764. End shCRT
  765. --**********************************************
  766.  
  767. --**********************************************
  768. On slCRT
  769. global attacker
  770. global CRTdefense
  771. global CRToffense
  772. global defense
  773. global oppDefense
  774. global aimPoint
  775. global aFlag
  776. global eFlag
  777. global dFlag
  778. global roll
  779. global tempCompScore
  780. global tempYouScore
  781. global tempCompMiss
  782. global tempYouMiss
  783. global oppAim
  784. put 0 into aFlag
  785. put 0 into dFlag
  786. put 0 into eFlag
  787. If attacker = 1 then
  788. put defense-20 into CRTdefense
  789. put oppAim into CRToffense
  790. end if
  791. If attacker = 2 then
  792. put oppDefense into CRTdefense
  793. put aimPoint-1 into CRToffense
  794. end if
  795. If CRToffense = 1 then
  796. dice
  797. put 1 into aFlag
  798. if roll >= 11 then lanceHit else miss
  799. put 0 into aFlag
  800. end if
  801. If CRToffense = 2 then
  802. dice
  803. put 1 into eFlag
  804. if roll >= 13 then lanceHit else miss
  805. put 0 into eFlag
  806. end if
  807. If CRToffense = 3 then
  808. dice
  809. put 1 into eFlag
  810. if roll >= 15 then lanceHit else miss
  811. put 0 into eFlag
  812. end if
  813. If CRToffense = 4 then
  814. dice
  815. if roll >= 15 then lanceHit else miss
  816. end if
  817. If CRToffense = 5 then
  818. dice
  819. put 1 into eFlag
  820. if roll >= 6 then lanceHit else miss
  821. put 0 into eFlag
  822. end if
  823. If CRToffense = 6 then
  824. dice
  825. if roll >= 11 then lanceHit else miss
  826. end if
  827. If CRToffense = 7 then
  828. dice
  829. if roll >= 5 then lanceHit else miss
  830. end if
  831. If CRToffense = 8 then
  832. dice
  833. if roll >= 9 then lanceHit else miss
  834. end if
  835. If CRToffense = 9 then
  836. dice
  837. if roll >= 13 then lanceHit else miss
  838. end if
  839. If CRToffense = 10 then
  840. dice
  841. if roll >= 11 then lanceHit else miss
  842. end if
  843. End slCRT
  844. --**********************************************
  845.  
  846. --**********************************************
  847. On lhCRT
  848. global attacker
  849. global CRTdefense
  850. global CRToffense
  851. global defense
  852. global oppDefense
  853. global aimPoint
  854. global eFlag
  855. global dFlag
  856. global roll
  857. global tempCompScore
  858. global tempYouScore
  859. global tempCompMiss
  860. global tempYouMiss
  861. global oppAim
  862. put 0 into dFlag
  863. put 0 into eFlag
  864. If attacker = 1 then
  865. put defense-20 into CRTdefense
  866. put oppAim into CRToffense
  867. end if
  868. If attacker = 2 then
  869. put oppDefense into CRTdefense
  870. put aimPoint-1 into CRToffense
  871. end if
  872. If CRToffense = 1 then
  873. dice
  874. if roll >= 19 then lanceHit else miss
  875. end if
  876. If CRToffense = 2 then
  877. dice
  878. if roll >= 16 then lanceHit else miss
  879. end if
  880. If CRToffense = 3 then
  881. dice
  882. if roll >= 16 then lanceHit else miss
  883. end if
  884. If CRToffense = 4 then
  885. dice
  886. if roll >= 9 then lanceHit else miss
  887. end if
  888. If CRToffense = 5 then
  889. dice
  890. put 1 into eFlag
  891. if roll >= 6 then lanceHit else miss
  892. put 0 into eFlag
  893. end if
  894. If CRToffense = 6 then
  895. dice
  896. if roll >= 13 then lanceHit else miss
  897. end if
  898. If CRToffense = 7 then
  899. dice
  900. if roll >= 9 then lanceHit else miss
  901. end if
  902. If CRToffense = 8 then
  903. dice
  904. if roll >= 5 then lanceHit else miss
  905. end if
  906. If CRToffense = 9 then
  907. dice
  908. if roll >= 11 then lanceHit else miss
  909. end if
  910. If CRToffense = 10 then
  911. dice
  912. if roll >= 11 then lanceHit else miss
  913. end if
  914. End lhCRT
  915. --**********************************************
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923. </script>
  924. </background>
  925.